home *** CD-ROM | disk | FTP | other *** search
/ PCNet 2006 April / PCnet 2006-06.4.iso / shareware / nmsetup.exe / WebServer / web / _tasks_panel.php < prev    next >
Encoding:
PHP Script  |  2006-05-01  |  5.0 KB  |  108 lines

  1. <?php
  2. ////////////////////////////////////////////////////////////////////////////////
  3. // <!--Copyright (c) 2005 Pure Networks Inc.  All rights reserved.-->
  4. ////////////////////////////////////////////////////////////////////////////////
  5. //
  6. // Build: 3.0.6121.0 (Stable)
  7. // $Revision: #3 $
  8. //
  9. $sPanelTableHeader = "tasks";
  10. require "_header_panel.php";
  11.  
  12. $sEmailSubject  = "Check out this " .  $sProductNameInformal . " web site";
  13. $sEmailSubject  = str_replace(" ", "%20", $sEmailSubject);
  14. $sEmailBody     = "Hi there:";
  15. $sEmailBody     .= "\r\n[Type your message here]";
  16. $sEmailBody     .= "\r\n\r\nTo view the photos or files, click this link: " . $sHomeUrl;
  17. $sEmailBody     .= "\r\n\r\nIf the site is unavailable, the computer hosting the files may be turned off. Please try again later.";
  18. $sEmailBody     .= "\r\n\r\nThanks!";
  19. $sEmailBody     .= "\r\nThe " . $sParentProductNameInformal . " and " . $sProductNameInformal . " Teams";
  20. $sEmailBody     .= "\r\n\r\n=============================================================";
  21. $sEmailBody     .= "\r\n\r\nFor more information on Net2Go and Network Magic - including how you can get your own Net2Go site -- click the links below:";
  22. $sEmailBody     .= "\r\n\r\n" . $sProductNameInformal . ": Access and share photos and files on your home network without uploading to a service: http://www.net2go.com";
  23. $sEmailBody     .= "\r\n" . $sParentProductNameInformal . ": Manage your home network with one easy application: http://www.networkmagic.com";
  24. $sEmailBody     .= "\r\n\r\n=============================================================";
  25. $sEmailBody     .= "\r\n\r\nIf you feel you have received this email in error, please contact " . $sParentProductNameInformal . " technical support:";
  26. $sEmailBody     .= "\r\nhttp://www.networkmagic.com/support/requestsupport.php";
  27. $sEmailBody     = str_replace(" ", "sssssxxxxxsssss", $sEmailBody);
  28. $sEmailBody     = urlEncodeString($sEmailBody);
  29. $sEmailBody     = str_replace("sssssxxxxxsssss", "%20", $sEmailBody);
  30. $sEmailBody     = str_replace("\r\n", "%0D%0A", $sEmailBody);
  31.  
  32. $arTasks[$iTaskCount][0] = "Email a friend";
  33. $arTasks[$iTaskCount][1] = "mailto:?subject=" . $sEmailSubject . "&body=" . $sEmailBody;
  34. $arTasks[$iTaskCount][2] = "EmailFriendLink";
  35. $arTasks[$iTaskCount][3] = "";
  36. $iTaskCount++;
  37.  
  38. ////////////////////////////////////////////////////////////////////////////////
  39. // Add link rel tags for the site's various RSS 2.0 feeds that are available    
  40. ////////////////////////////////////////////////////////////////////////////////
  41. if ($bRssFeedsEnabled)
  42. {
  43.     switch ($sNavPage)
  44.     {
  45.         // let's do a switch case here so we can define different feeds for different parts of the site if we so choose.
  46.         case "folders":
  47.         case "details":
  48.             if ($sAccessLevel == 0) // public share
  49.             {
  50.                 // we're in a share or detail view of a share's image, let's add the rel link tag for the share's specifc rss feed.
  51.                 $arTasks[$iTaskCount][0] = "Subscribe to this share";
  52.                 $arTasks[$iTaskCount][1] = "/rss2/" . urlEncodeString($_GET['share']);
  53.                 $arTasks[$iTaskCount][2] = "RssFeed";
  54.                 $arTasks[$iTaskCount][3] = "";
  55.                 $arTasks[$iTaskCount][4] = "RssLink";
  56.                 $iTaskCount++;
  57.             }
  58.             break;
  59.         default:
  60.             // we're anywhere but a share, let's add the rel link tag for the general sitewide rss feed.
  61.             $arTasks[$iTaskCount][0] = "Subscribe to this site";
  62.             $arTasks[$iTaskCount][1] = "/rss2/sitefeed/";
  63.             $arTasks[$iTaskCount][2] = "RssFeed";
  64.             $arTasks[$iTaskCount][3] = "";
  65.             $arTasks[$iTaskCount][4] = "RssLink";
  66.             $iTaskCount++;
  67.             break;
  68.     }
  69. }
  70.  
  71. if ($bRssFeedsEnabled)
  72. {
  73.     $arTasks[$iTaskCount][0] = "Get PhotoCast";
  74.     $arTasks[$iTaskCount][1] = "http://photocast.networkmagic.com/?host=" . str_replace("http://","",$sHomeUrl);
  75.     $arTasks[$iTaskCount][2] = "PhotoCast";
  76.     $arTasks[$iTaskCount][3] = "_blank";
  77.     $arTasks[$iTaskCount][4] = "PhotoCastLink";
  78.     $iTaskCount++;
  79. }
  80.  
  81. if (isset($arTasks))
  82. {
  83.     foreach($arTasks as $task)
  84.     {
  85.         // $arTasks[$iTaskCount][0] : Link text
  86.         // $arTasks[$iTaskCount][1] : link URL
  87.         // $arTasks[$iTaskCount][2] : id for the div - allows automated DOM access to a specific known link
  88.         // $arTasks[$iTaskCount][3] : target - allows you to pop a new window with a specific 
  89.         //      window name: "_blank" will make a new window pop every time w/o loading into the same one
  90.         echo ("<a class=\"");
  91.         if (isset($task[4]))
  92.         {
  93.             echo ($task[4]);
  94.         }
  95.         else
  96.         {
  97.             echo ("LinkOut");
  98.         }
  99.         echo ("\" target=\"" . $task[3] . "\" href=\"" . $task[1] . "\" id=\"" . $task[2] . "\" title=\"". $task[0] . "\">");
  100.             echo ($task[0]);
  101.         echo ("</a>");
  102.         echo ("<br/>");
  103.     }
  104. }
  105. echo("<br/>");
  106. require "_footer_panel.php";
  107.  ?>
  108.